<div class="row-fluid">
    <div class="span12">
        <div class="grid simple">
			<div class="grid-title no-border">
				<h4>Управление <span class="semi-bold">страницами</span></h4>
			</div>				
			<div class="grid-body no-border email-body">
				<?php
				/* @var $this PageController */
				/* @var $model Page */


				$this->breadcrumbs = array(
					'Pages' => array('index'),
					'Управление',
				);
				?>

				<?php
				$this->widget('bootstrap.widgets.TbGridView', array(
					'id' => 'page-grid',
					'dataProvider' => $model->search(),
					'filter' => $model,
					'htmlOptions' => array(
						'class' => 'table-bordered table-hover',
					),
					'columns' => array(
						'pageId',
						//'pageParent',
						'pageType',
						//'pageItemId',
						'pageUrl',
						'pageTitle',
						'pageContentShort',
						/* 'pageContentFull',
						  'pageImages',
						  'pageActive',
						  'pageAuthor',
						  'pageSort',
						  'pageAction',
						 */
						array(
							'class' => 'bootstrap.widgets.TbButtonColumn',
							'template'=>'{view}{update}{delete}{meta}',
							'buttons' => array(
								'meta' => array(
									'label'=>'<i class="icon-search"></i>',
									'url' => 'Yii::app()->controller->createUrl("metas/update",array("id"=>$data->pageId,"type"=>"page"))',
								),
							)
						),
					),
				));
				?>
			</div>
        </div>	
    </div>
</div>